<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery-1.4.2","jquery.validate")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();

foreach($query as $row_val)
{   
    $bank_accountholdername = $row_val->bank_accountholdername;
	
	$bank_name = $row_val->bank_manager_name;
    
    $account_number = $row_val->bank_manager_account_number;
    
    $branch = $row_val->bank_manager_branch;
    
    $branch_code = $row_val->bank_manager_branch_code;
    
    $swift_code = $row_val->bank_manager_swift_code;
}

?>

<div class="admin_right">
<div style="height:7px;"></div>
		<div class="divList_10">
				<h2 class="head02">admin bank manger</h2>
                <div class="line"></div>
                <div>
                <?php 
				$attrbutes = array('class'=>'','id' => 'admin_bank_manager_form');
				echo form_open('admin/bank_manager',$attrbutes);?>
               
                <ul>
                <li><p class="white_bold">Account Holder's name: <span class="small">(required)</span></p></li>
                <li><input type="text" id="bank_accountholdername" value="<?php echo $bank_accountholdername?>" name="bank_accountholdername" size="50" ></li>
                <li><?php echo form_error('bank_accountholdername'); ?></li>
                
                
               	<li><p class="white_bold">Bank Name: <span class="small">(required)</span></p></li>
                
                <li><input type="text" id="bank_name" value="<?php echo $bank_name?>" name="bank_name" size="50" ></li>
                <li><?php echo form_error('bank_name'); ?></li>
                
                 <div class="height5"></div>
                <li><p class="white_bold">Account Number: <span class="small">(required)</span></p></li>
                
                <li><input type="text" id="account_number" value="<?php echo $account_number?>" name="account_number" size="50" ></li>
                
                <li><?php echo form_error('account_number'); ?></li>
                
                 <div class="height5"></div>
                <li><p class="white_bold">Branch: <span class="small">(required)</span></p></li>
                
                <li><input type="text" value="<?php echo $branch?>" name="branch" id="branch" size="50" ></li>
                
                <li><?php echo form_error('branch'); ?></li>
                
                <div class="height5"></div>
                
                <li><p class="white_bold">Branch Code: <span class="small">(required)</span></p></li>
                
                <li><input type="text" value="<?php echo $branch_code?>" name="branch_code" id="branch_code" size="50" ></li>
                
                <li><?php echo form_error('branch_code'); ?></li>
                
                <div class="height5"></div>
                <li><p class="white_bold">INTERNATIONAL SWIFT CODE: <span class="small">(required)</span></p></li>
                
                <li><input type="text" value="<?php echo $swift_code?>" name="swift_code" id="swift_code" size="50" ></li>
                
                <li><?php echo form_error('swift_code'); ?></li>
                
                <div class="height5"></div>
                <div class="line6"></div>
                    <div class="height5"></div>
                <li><input type="submit" name="submit" id="submit" value="Submit" /></li>
                </ul>
               
                <?php echo form_close();?>
                
                </div>
           </div>
</div><!-- page -->
<?php //$this->load->view(TEMPLATE_NAME.'/admin/footer');
$CI->load->library('admin/admin_footer_lib');
?>

<script type="text/javascript">
	$(document).ready(function(){
		
//alert('test');
		$('#admin_bank_manager_form1').validate({
					rules: {
					bank_name: {
						required: true
					},
					account_number: {
						required: true
					},
					branch: {
						required: true
					},
					branch_code: {
						required: true
					},
					swift_code: {
						required: true
					}
				},
				messages: {
					required: "Please enter a valid email address",
					required: "Please enter a valid email address",
					required: "Please enter a valid email address",
					required: "Please enter a valid email address",
					required: "Please enter a valid email address"
				}
	
		});
	});
</script>
<?php
$CI->admin_footer_lib->display_footer();

?>
